<?php
    require_once '../config.php';
    include '_header.php';
    
    $query = "SELECT COUNT( * ) AS \"hits\" FROM  fhpi_usage WHERE access >= DATE_ADD( NOW( ) , INTERVAL -1 DAY );";
    $result = mysqli_query($db, $query);
    
    while($row = mysqli_fetch_assoc($result)){
        $count24 = $row['hits'];
    }
    
    $query = "SELECT COUNT( * ) AS \"hits\" FROM  fhpi_usage;";
    $result = mysqli_query($db, $query);
    
    while($row = mysqli_fetch_assoc($result)){
        $countall = $row['hits'];
    }
?>

        <h1>About FHPI</h1>
         
        <div>The FHPI server was developed 2011 - 2012 by Markus Deutsch of ITM09 as part of a Bachelor's thesis. 
            Its original purpose was to be the service provider for <a href="http://www.moop.at/fhj" target="_blank">FH2go</a>, an Android application for students of FH JOANNEUM.<br />
            FHPI is, however, open for anyone interested in implementing FH-related software. 
            All you need to do is to <a href="register.php">sign up for a key</a> and <a href="documentation.php">read the documentation</a>.</div>
        
        <h2>Usage</h2>
        <div>So far, the FHPI webservice has answered <?php echo $countall; ?> calls, <?php echo $count24; ?> of which were in the last 24 hours.</div>
        
        <h2>Get in touch</h2>
        <div>To get in touch please email me at support &auml;t moop.at or contact me via FH webmail.</div>
        
        
<?php include '_footer.php'; ?>